import datetime  # noqa: D100
from dataclasses import dataclass
from typing import Optional


@dataclass
class Repository:
    """存储仓库信息，一个项目可对应多个仓库."""

    id: int
    git_instance: str
    repo_fullname: str
    project_id: Optional[int] = None
    path_with_namespace: Optional[str] = None
    description: Optional[str] = None
    created_at: Optional[datetime.datetime] = None
    web_url: Optional[str] = None
    updated_at: Optional[datetime.datetime] = None
